<?php
// +----------------------------------------------------------------------
// | Iecms [ Make the most exquisite CMS ]
// +----------------------------------------------------------------------
// | Copyright (c) 2009~2019 http://www.iemoo.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: iemoo <i@iemoo.com>
// +----------------------------------------------------------------------
// | DateTime: 2019/11/19 11:08
// +----------------------------------------------------------------------
namespace app\admin\validate;

use think\Validate;

class Login extends Validate
{
    protected $rule =   [
        'username'  => 'require|alphaNum|token',
        'password'   => 'require',
        'verify' => 'alphaNum|length:5',    
    ];
    
    protected $message  =   [
        'username.require' => '请输入用户名',
        'username.alphaNum'     => '用户名不正确',
        'password.require'   => '请输入密码',
        'verify.alphaNum'	=> '验证码不正确',    
		'verify.length'		=> '验证码不正确',    
    ];
    
}